<%@ page contentType="text/html;charset=utf-8"%>
<%@page isELIgnored="false"%>
<%@ taglib prefix="cw" uri="/widget-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>门诊特殊病登记</title>
		<cw:base />
	</head>
	<body>
		<li>
			<b>以下示例主要展現了表单+表格的组合示例</b>
		</li>
		<li>
			<b>表单用作信息登记，表格将表单信息添加并保存到后台</b>
		</li>
		<br>
		<br>
		<div id="pDivForm" style="margin: 0 0 0 0">
			<cw:form id="form1" url="../../../sample/combination/formwithgrid.submit.action" waitMsg="提交中，请稍候...">
				<cw:fieldSet id="sqxx" title="门诊特殊病申请信息" checkboxToggle="false" collapsible="true" content="sqxxDiv" />
				<div id="sqxxDiv">
					<table width="100%">
						<COLGROUP>
							<COL width='10%' align="right">
							<COL width='23%' align="left">
							<COL width='10%' align="right">
							<COL width='23%' align="left">
							<COL width='10%' align="right">
							<COL width='24%' align="left">
						</COLGROUP>
						<tr>
							<td nowrap="nowrap">
								<span class="required">*</span>申请医院:
							</td>
							<td>
								<cw:combobox property="bac901" data="[[1,'扬州市第一人民医院'],[2,'扬州市红十字中心医院'],[3,'扬州市中医院'],[4,'扬州友好医院']]" />
							</td>
							<td nowrap="nowrap">
								科别:
							</td>
							<td>
								<cw:text property="bac902" />
							</td>
							<td nowrap="nowrap">
								病情摘要:
							</td>
							<td>
								<cw:text property="bac903" />
							</td>
						</tr>
						<tr>
							<td nowrap="nowrap">
								<span class="required">*</span>申请病种:
							</td>
							<td>
								<cw:combobox property="bac904"
									data="[[1,'血透肾衰竭'],[2,'肾移植抗排异治疗'],[3,'放化疗癌症'],[4,'三期以上高血压'],[5,'三期以上糖尿病'],
									      [6,'慢性活动性肝炎和肝硬化'],[7,'精神分裂症和情感性精神病'],[8,'系统性红斑狼疮'],[9,'慢性肾功能不全'],
									      [10,'再生障碍性贫血'],[11,'肺结核'],[12,'帕金森氏病及综合症'],[12,'类风湿性关节炎']]" />
							</td>
							<td nowrap="nowrap">
								<span class="required">*</span>申请日期:
							</td>
							<td>
								<cw:dateField property="bac905" />
							</td>
							<td nowrap="nowrap">
								诊断依据:
							</td>
							<td>
								<cw:text property="bac906" />
							</td>
						</tr>
						<tr>
							<td nowrap="nowrap">
								社保中心审批意见:
							</td>
							<td>
								<cw:text property="bac907" />
							</td>
							<td nowrap="nowrap">
								<span class="required">*</span>审批日期:
							</td>
							<td>
								<cw:dateField property="bac908" />
							</td>
							<td>
								&nbsp;
							</td>
							<td>
								&nbsp;
							</td>
						</tr>
					</table>
				</div>
				<div id="grid1_div">
					<cw:editGrid url="hospital.json" width="800" height="200" id="hospital" exportable="false" enablePage="false"
						selectMode="checkbox" title="选择定点医院">
						<cw:toolBar>
							<cw:actionButton type="add" title="添加" />
							<cw:actionButton type="remove" title="删除" dataIndex="bac909" />
						</cw:toolBar>
						<cw:indexColumn />
						<cw:gridColumn property="bac909" rendererData="[[1,'扬州市第一人民医院'],[2,'扬州市红十字中心医院'],[3,'扬州市中医院'],[4,'扬州友好医院']]"
							width="200" title="定点医院" editable="true" align="center">
							<cw:combobox property="bac909" data="[[1,'扬州市第一人民医院'],[2,'扬州市红十字中心医院'],[3,'扬州市中医院'],[4,'扬州友好医院']]" />
						</cw:gridColumn>
						<cw:gridColumn property="bac910" rendererData="[[1,'一级医院'],[2,'二级医院'],[3,'三级医院'],[4,'市外医院']]" width="100"
							title="医院级别" editable="true" align="left">
							<cw:combobox property="bac910" data="[[1,'一级医院'],[2,'二级医院'],[3,'三级医院'],[4,'市外医院']]" />
						</cw:gridColumn>
					</cw:editGrid>
				</div>
				<div id="grid2_div">
					<cw:editGrid url="../../../sample/combination/personinfo.querynopage.action" width="800" height="200"
						id="personInfo" enablePage="false" selectMode="checkbox" title="人员信息(通过urlParams中设置name='Kiddy18'限制只显示一条记录)"
						urlParams="{name:'Kiddy18'}" property="personInfo">
						<cw:toolBar>
							<cw:actionButton type="add" title="添加" split="true" />
							<cw:actionButton type="remove" title="删除" split="true" />
						</cw:toolBar>
						<cw:indexColumn />
						<cw:gridColumn property="id" width="10%" title="编号" hidden="false" />
						<cw:gridColumn property="name" editable="true" sortable="true" width="10%" title="姓名" defaultValue="xieguoking" />
						<cw:gridColumn property="email" editable="true" editorType="email" sortable="true" width="25%"
							defaultValue="xieguoking@gmail.com" />
						<cw:gridColumn property="age" editable="true" sortable="true" width="10%" dataType="int" defaultValue="27"
							format="1,000">
							<cw:number property="age" allowDecimals="false" allowNegative="false" />
						</cw:gridColumn>
						<cw:gridColumn property="birthday" editable="true" sortable="true" width="10%" dataType="date" editorType="date"
							format="Y-m-d" defaultValue="1983-01-16">
						</cw:gridColumn>
						<cw:gridColumn property="sex" rendererData="[[1,'男'],[2,'女']]" editable="true" sortable="true" width="10%"
							dataType="string" editorType="int" defaultValue="2">
							<cw:combobox property="sex" data="[[1,'男'],[2,'女']]" />
						</cw:gridColumn>
						<cw:gridColumn property="created" title="创建时间" editable="true" width="20%" dataType="date" editorType="date"
							format="Y-m-d H:i:s" defaultValue="1983-01-16 01:00:00">
						</cw:gridColumn>
					</cw:editGrid>
				</div>
			</cw:form>
		</div>
		<cw:formButton actionType="submit" formId="form1" />
		<cw:theme />
	</body>
</html>
